﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Detail_Video.ascx.vb"
    Inherits="Control_Contents_Detail_Video" %>
<div class="DivLabel">
    <h3>
        XEM NỘI DUNG</h3>
</div>
<div style="float: left; color: #fff; margin-left: 11px; width: 639px;">
    <div class="beautyWidthContent">
        <div class="beutyDetail beautyItems" style="width: 591px; padding-bottom: 26px;"
            id="div2" runat="server">
            <asp:HyperLink ID="hplTitle" CssClass="linkPink_width590" runat="server"></asp:HyperLink>  
            <asp:Literal ID="ltrView" runat="server"></asp:Literal>

            <div class="imgLageBeauty_width590_style">
                <asp:Image ID="imgNews" runat="server" CssClass="imgLageBeauty_width590" />
                <asp:HyperLink ID="hplType" runat="server"></asp:HyperLink>
            </div>
            <div id="divContent">
                <asp:Literal ID="ltrDes" runat="server"></asp:Literal>
                <asp:Panel ID="pnlVideoUpload" Visible="false" Width="100%" runat="server">
                    <script type="text/javascript">
                        $(function () {
                            $(".alejandro").click(function () {
                                var fileurl = $(this).attr("name");
                                var title = $(this).attr("innerHTML");

                                var newObjElement = '<embed width="300" height="300" flashvars="file=' + fileurl + '" allowfullscreen="true" allowscriptaccess="always" src="<%=PlayerUrl() %>" name="player2" id="player2" type="application/x-shockwave-flash">';
                                $("#divEmbededVideo").flash(newObjElement);
                            });
                        }); 
                    </script>
                    <div id="divEmbededVideo" style="padding-left: 10px; padding-top: 10px;">
                        <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
                        <embed type="application/x-shockwave-flash" src="<%=PlayerUrl() %>" width="300" height="300"
                            style="undefined" id="player" name="player" bgcolor="#000000" quality="high"
                            allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="file=<%=FileUrl() %>" />
                        <script type="text/javascript">
                        var so = new SWFObject(<%=PlayerUrl() %>, 'player', '300', '300', '9', '#000000');
                        so.addParam('allowfullscreen', 'true');
                        so.addParam('allowscriptaccess', 'always');
                        so.addParam('wmode', 'opaque');
                        so.addParam('flashvars', 'file=<%=FileUrl() %>');
                        so.write('preview');
                        swfobject.registerObject("FlashID");
                        </script>
                        <!-- END OF THE PLAYER EMBEDDING -->
                    </div>
                </asp:Panel>
                <asp:Panel ID="pnlYoutube" Visible="false" Width="100%" runat="server">
                    <div id="div1" style="padding-left: 10px; padding-top: 10px;">
                        
                        <asp:Literal ID="ltrShow" runat="server"></asp:Literal>
                    </div>
                </asp:Panel>
            </div>
              
        </div>
    </div>
    <div>
        <div class="clearboth">
            &nbsp;</div>
        <div class="title_moreviews">
            <div>
                TIN KHÁC<div style="float: right; text-align: justify;">
                
                   <asp:Label ID="lblCreated"  runat="server"></asp:Label>
              <asp:Label ID="lblAuthor" CssClass="author" runat="server" Text=""></asp:Label>
                    <div style="" class="bottom_views">
                        <img height="18" width="18" src="../../images/icon_p.gif" style="vertical-align: middle;"
                            alt="">&nbsp; <a href="javascript:window.print();">In trang</a>
                        <div id="toTop" style="display: none;">
                            <img height="18" width="18" src="~/images/top_sg.gif" style="vertical-align: middle;"
                                alt="">&nbsp; Về đầu trang
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clearboth" style="height: 10px; width: 815px;">
        </div>
        <div class="links_notice">
            <ul>
                <asp:GridView ID="grvData" CellPadding="0" BorderWidth="0" ShowHeader="false" AutoGenerateColumns="false"
                    runat="server">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <li><a id="1" href="../../Page/Contents/Detail_Video.aspx?type=<%# Eval("TypeId") %>&id=<%# Eval("Id") %>">
                                    <%# Eval("Title")%></a> <span id="2">(<%# String.Format("{0:d/M/yyyy}", Eval("Created"))%>)</span>
                                </li>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </ul>
        </div>
    </div>
</div>
<asp:HiddenField ID="hidID" Value="0" runat="server" />
